package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Festival;

import java.util.List;

@DBMapper
public interface FestivalMapper {
    int deleteByPrimaryKey(Integer fId);

    int insert(Festival record);

    int insertSelective(Festival record);

    Festival selectByPrimaryKey(Integer fId);

    int updateByPrimaryKeySelective(Festival record);

    int updateByPrimaryKey(Festival record);

    /**
     * 根据条件查询节日列表
     * @param festival
     * @return
     */
    List<Festival> selectListByCondition(Festival festival);
}